<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="iptuForm" enctype="multipart/form-data">
                <p:growl id="messages"  autoUpdate="true"  />

                <p:panel id="realtyPanel" style="background: none; border: none;" 
                         styleClass="container_24 clearfix ">

                 

                    <div class="buttonAction" style="padding-top: 30px">
                        <p:commandButton value="Gerar IPTU"
                                         actionListener="#{managerIPTU.gerarIPTU()}"
                                         update="@form"
                                         style="width: 200px"
                                         icon="ui-icon-check"/>
                        <p:commandButton value="Voltar" icon="ui-icon-arrowreturnthick-1-w" style="width: 200px" />
                    
                                        <p:commandButton title="Imprimir"
                                                         ajax="false" update="@form"
                                                         onclick="this.form.target='_blank'"
                                                         actionListener="#{managerIPTU.geraBoleto()}"
                                                         icon="ui-icon-print" />

                    </div>

                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
